package com.manjiwang.middleground.controller;

import com.manjiwang.middleground.service.MiddlegroundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 数据中台服务控制层
 *
 * @Author Yang Hai Feng
 * @Date 2021/8/10 21:40
 */
@RestController
@RequestMapping(value = "Middleground")
public class MiddlegroundController {

    @Autowired
    private MiddlegroundService middlegroundService;

    @GetMapping("/placeOrderBy")
    public Boolean placeOrderBy(@RequestParam("goodsId") String goodsId) {
        return middlegroundService.placeOrderBy(goodsId);
    }
}
